LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := FreeType2_shared

LOCAL_MODULE_FILENAME := libFreeType2

# compile in ARM mode
LOCAL_ARM_MODE := arm

LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY"

LOCAL_SRC_FILES := FreeType2/src/base/ftbbox.c \
				   FreeType2/src/base/ftgxval.c \
				   FreeType2/src/base/ftlcdfil.c \
				   FreeType2/src/base/ftmm.c \
				   FreeType2/src/base/ftotval.c \
				   FreeType2/src/base/ftpatent.c \
				   FreeType2/src/base/ftpfr.c \
				   FreeType2/src/base/ftsynth.c \
				   FreeType2/src/base/fttype1.c \
				   FreeType2/src/base/ftwinfnt.c \
				   FreeType2/src/base/ftxf86.c \
				   FreeType2/src/pcf/pcf.c \
				   FreeType2/src/pfr/pfr.c \
				   FreeType2/src/psaux/psaux.c \
				   FreeType2/src/pshinter/pshinter.c \
				   FreeType2/src/psnames/psnames.c \
				   FreeType2/src/raster/raster.c \
				   FreeType2/src/sfnt/sfnt.c \
				   FreeType2/src/truetype/truetype.c \
				   FreeType2/src/type1/type1.c \
				   FreeType2/src/cid/type1cid.c \
				   FreeType2/src/type42/type42.c \
				   FreeType2/src/winfonts/winfnt.c \
				   FreeType2/src/autofit/autofit.c \
				   FreeType2/src/bdf/bdf.c \
				   FreeType2/src/cff/cff.c \
				   FreeType2/src/base/ftbase.c \
				   FreeType2/src/base/ftbitmap.c \
				   FreeType2/src/cache/ftcache.c \
				   FreeType2/src/base/ftfstype.c \
				   FreeType2/src/base/ftgasp.c \
				   FreeType2/src/base/ftglyph.c \
				   FreeType2/src/gzip/ftgzip.c \
				   FreeType2/src/base/ftinit.c \
				   FreeType2/src/lzw/ftlzw.c \
				   FreeType2/src/base/ftstroke.c \
				   FreeType2/src/base/ftsystem.c \
				   FreeType2/src/smooth/smooth.c \
				   FreeType2/src/gzip/adler32.c \
				   FreeType2/src/sfnt/ttsbit0.c \
				   FreeType2/jnihelper/jnihelper.c

LOCAL_C_INCLUDES := $(LOCAL_PATH)/FreeType2/include/

LOCAL_LDLIBS := -ldl -lstdc++

include $(BUILD_SHARED_LIBRARY)


